import request from '@/utils/request'

// 学科专业组-待组长审核课程列表
export function waitReviewCourseList(params) {
  return request({
    url: `/school/manager/disciplineGroup/waitReviewCourseList`,
    method: 'get',
    params: params
  })
}

// 学科专业组-是否组长和待审批数量
export function branchDisciplineIsLeader(params) {
  return request({
    url: `/school/manager/disciplineGroup/isLeader`,
    method: 'get',
    params: params
  })
}

// 学科专业组-启用停用
export function disciplineGroup_changeStatus(data) {
  return request({
    url: `/school/manager/disciplineGroup/changeStatus`,
    method: 'put',
    data: data
  })
}

// 学科专业组-新增
export function disciplineGroup_post(data) {
  return request({
    url: `/school/manager/disciplineGroup`,
    method: 'post',
    data: data
  })
}

// 学科专业组-修改
export function disciplineGroup_put(data) {
  return request({
    url: `/school/manager/disciplineGroup`,
    method: 'put',
    data: data
  })
}

// 学科专业组-获取
export function disciplineGroup_info(id) {
  return request({
    url: `/school/manager/disciplineGroup/${id}`,
    method: 'get'
  })
}

// 学科专业组-分院-学科-列表
export function branchDisciplineList(params) {
  return request({
    url: `/school/manager/disciplineGroup/branchDisciplineList`,
    method: 'get',
    params: params
  })
}

// 学科专业组功能-开启关闭
export function disciplineGroup_onOff(onOffStatus) {
  return request({
    url: `/school/manager/disciplineGroup/onOff/${onOffStatus}`,
    method: 'put'
  })
}

// 学科专业组-课程列表
export function branchDisciplineCourseList(params) {
  return request({
    url: `/school/manager/disciplineGroup/courseList`,
    method: 'get',
    params: params
  })
}

// 学科专业组-课程列表排序
export function branchDisciplineCourseSort(data) {
  return request({
    url: `/school/manager/disciplineGroup/disciplineGroupCourseSort`,
    method: 'put',
    data: data
  })
}

// 学科专业组-资料新增
export function addFile(data) {
  return request({
    url: `/school/manager/disciplineGroup/addFile`,
    method: 'post',
    data: data
  })
}

// 学科专业组-资料修改
export function editFile(data) {
  return request({
    url: `/school/manager/disciplineGroup/editFile`,
    method: 'put',
    data: data
  })
}

// 学科专业组-资料排序
export function sortFile(data) {
  return request({
    url: `/school/manager/disciplineGroup/disciplineGroupFileSort`,
    method: 'put',
    data: data
  })
}
// 学科专业组-删除
export function disciplineGroup_delete(disciplineGroupId) {
  return request({
    url: `/school/manager/disciplineGroup/${disciplineGroupId}`,
    method: "delete",
  });
}
// 学科专业组-资料列表
export function branchDisciplineFileList(params) {
  return request({
    url: `/school/manager/disciplineGroup/fileList`,
    method: 'get',
    params: params
  })
}

// 学科专业组-成员列表
export function branchDisciplineTeacherList(params) {
  return request({
    url: `/school/manager/disciplineGroup/teacherList`,
    method: 'get',
    params: params
  })
}

// 学科专业组列表
export function disciplineList(params) {
  return request({
    url: `/school/manager/disciplineGroup/list`,
    method: 'get',
    params: params
  })
}

// 学科专业组功能开关-状态
export function disciplineGroup_onOffStatus(params) {
  return request({
    url: `/school/manager/disciplineGroup/onOffStatus`,
    method: 'get',
    params: params
  })
}
// 学科专业组-排序
export function disciplineGroup_sort(data) {
  return request({
    url: `/school/manager/disciplineGroup/disciplineGroupSort`,
    method: "put",
    data:data
  });
}
//   学科专业组-分院排序
export function disciplineGroup_sortByBranch(data) {
  return request({
    url: `/school/manager/disciplineGroup/disciplineGroupBranchSort`,
    method: "put",
    data:data
  });
}
